<%@page isELIgnored="false" import="java.net.*" %>
<%@taglib prefix="tiles" uri="struts-tiles" %>
<%@taglib prefix="html" uri="struts-html" %>
<%@taglib prefix="c" uri="jstl" %>
					<div id="bodyContent">
						<h1>Editar Cuenta</h1>
						
						<center>
						<html:form action="/EditarCuentaEditar" method="post">
						<html:hidden property="regId" />
						<html:hidden property="catalogoId" value="2"/>
						<html:hidden property="operation" value="3"/>
						<br/>
						
						<div class='errors'>
						<html:errors/>
						</div>
						
						<table class="TablaCatalogosNuevoTipoCuenta">
							<thead>
								<tr>
									<th>
										Editar cuenta
									</td>
								</tr>
							</thead>
							<tr>
								<td>
									<br/>
									<table class='TablaCatalogosFields'>
										<tr>
											<td class='TDLabel'>
												Nombre: &nbsp;&nbsp;
											</td>
											<td class='TDField'>
												<html:text property="campo1" styleClass='TextField' />
											</td>
										</tr>
										<tr>
											<td class='TDLabel'>
												Descripci&oacute;n: &nbsp;&nbsp;
											</td>
											<td class='TDField'>
												<html:text property="campo2" styleClass='TextField' />
											</td>
										</tr>
										<tr>
											<td class='TDLabel'>
												Agrupador: &nbsp;&nbsp;
											</td>
											<td class='TDField'>
												<html:select property="campoInt1">
<c:forEach items="${MCCatalogs.allActiveCountTypes}" var="countType">
<c:if test="${countType.cveTipoCuenta eq EditarCuentaEditarForm.campoInt1}">
													<option selected value="${countType.cveTipoCuenta}">${countType.nombre}</option>
</c:if>
<c:if test="${countType.cveTipoCuenta ne EditarCuentaEditarForm.campoInt1}">
													<option value="${countType.cveTipoCuenta}">${countType.nombre}</option>
</c:if>
</c:forEach>
												</html:select>
											</td>
										</tr>
										<tr>
											<td class='TDLabel'>
												Tipo de cuenta: &nbsp;&nbsp;
											</td>
											<td class='TDField'>
												<html:select property="campoInt2">
<c:forEach items="${MCCatalogs.allActiveRealCountTypes}" var="countType">
<c:if test="${countType.cveTipoCuentaReal eq EditarCuentaEditarForm.campoInt2}">
													<option selected value="${countType.cveTipoCuentaReal}">${countType.nombre}</option>
</c:if>
<c:if test="${countType.cveTipoCuentaReal ne EditarCuentaEditarForm.campoInt2}">
													<option value="${countType.cveTipoCuentaReal}">${countType.nombre}</option>
</c:if>
</c:forEach>
												</html:select>
											</td>
										</tr>
										<tr>
											<td colspan='2' class='TDButton'>
												<html:submit value='Actualizar' styleClass="ButtonSubmit" />
											</td>
										</tr>
									</table>
								</td>
							</tr>
						</table>
						</html:form>
						</center>
					</div>
					<div id="footContent"></div>
